<?php
/**
 * Created by PhpStorm.
 * User: PC大佬
 * Date: 2016/5/30
 * Time: 10:37
 */

require_once '../src/AddVerify.php';
session_start();
$v = new AddVerify();
$code = $_POST['code'];
$returnData['STATUS']=0;
if ($v->checkVerify($code)) {
    $returnData['STATUS']=1;
    echo json_encode($returnData);
    exit;
}
$returnData['MESSAGE']='验证失败！';
echo json_encode($returnData);